Optimal. Leaf size=103 \[ \frac {B e^2 x}{b^3}-\frac {(A b-a B) (b d-a e)^2}{2 b^4 (a+b x)^2}-\frac {(b d-a e) (b B d+2 A b e-3 a B e)}{b^4 (a+b x)}+\frac {e (2 b B d+A b e-3 a B e) \log (a+b x)}{b^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {78}
\begin {gather*} -\frac {(b d-a e) (-3 a B e+2 A b e+b B d)}{b^4 (a+b x)}-\frac {(A b-a B) (b d-a e)^2}{2 b^4 (a+b x)^2}+\frac {e \log (a+b x) (-3 a B e+A b e+2 b B d)}{b^4}+\frac {B e^2 x}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {(A+B x) (d+e x)^2}{(a+b x)^3} \, dx &=\int \left (\frac {B e^2}{b^3}+\frac {(A b-a B) (b d-a e)^2}{b^3 (a+b x)^3}+\frac {(b d-a e) (b B d+2 A b e-3 a B e)}{b^3 (a+b x)^2}+\frac {e (2 b B d+A b e-3 a B e)}{b^3 (a+b x)}\right ) \, dx\\ &=\frac {B e^2 x}{b^3}-\frac {(A b-a B) (b d-a e)^2}{2 b^4 (a+b x)^2}-\frac {(b d-a e) (b B d+2 A b e-3 a B e)}{b^4 (a+b x)}+\frac {e (2 b B d+A b e-3 a B e) \log (a+b x)}{b^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 140, normalized size = 1.36 \begin {gather*} \frac {-A b (b d-a e) (3 a e+b (d+4 e x))+B \left (-5 a^3 e^2+2 a^2 b e (3 d-2 e x)+2 b^3 x \left (-d^2+e^2 x^2\right )+a b^2 \left (-d^2+8 d e x+4 e^2 x^2\right )\right )+2 e (2 b B d+A b e-3 a B e) (a+b x)^2 \log (a+b x)}{2 b^4 (a+b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 157, normalized size = 1.52
method | result | size |
default | \(\frac {B \,e^{2} x}{b^{3}}-\frac {-2 A a b \,e^{2}+2 A \,b^{2} d e +3 B \,a^{2} e^{2}-4 B a b d e +b^{2} B \,d^{2}}{b^{4} \left (b x +a \right )}+\frac {e \left (A b e -3 B a e +2 B b d \right ) \ln \left (b x +a \right )}{b^{4}}-\frac {A \,a^{2} b \,e^{2}-2 A a \,b^{2} d e +A \,b^{3} d^{2}-B \,a^{3} e^{2}+2 B \,a^{2} b d e -B a \,b^{2} d^{2}}{2 b^{4} \left (b x +a \right )^{2}}\) | \(157\) |
norman | \(\frac {\frac {\left (2 A a b \,e^{2}-2 A \,b^{2} d e -6 B \,a^{2} e^{2}+4 B a b d e -b^{2} B \,d^{2}\right ) x}{b^{3}}+\frac {B \,e^{2} x^{3}}{b}+\frac {3 A \,a^{2} b \,e^{2}-2 A a \,b^{2} d e -A \,b^{3} d^{2}-9 B \,a^{3} e^{2}+6 B \,a^{2} b d e -B a \,b^{2} d^{2}}{2 b^{4}}}{\left (b x +a \right )^{2}}+\frac {e \left (A b e -3 B a e +2 B b d \right ) \ln \left (b x +a \right )}{b^{4}}\) | \(157\) |
risch | \(\frac {B \,e^{2} x}{b^{3}}+\frac {\left (2 A a b \,e^{2}-2 A \,b^{2} d e -3 B \,a^{2} e^{2}+4 B a b d e -b^{2} B \,d^{2}\right ) x +\frac {3 A \,a^{2} b \,e^{2}-2 A a \,b^{2} d e -A \,b^{3} d^{2}-5 B \,a^{3} e^{2}+6 B \,a^{2} b d e -B a \,b^{2} d^{2}}{2 b}}{b^{3} \left (b x +a \right )^{2}}+\frac {e^{2} \ln \left (b x +a \right ) A}{b^{3}}-\frac {3 e^{2} \ln \left (b x +a \right ) B a}{b^{4}}+\frac {2 e \ln \left (b x +a \right ) B d}{b^{3}}\) | \(173\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 171, normalized size = 1.66 \begin {gather*} -\frac {5 \, B a^{3} e^{2} - 3 \, A a^{2} b e^{2} + {\left (B a b^{2} + A b^{3}\right )} d^{2} - 2 \, {\left (3 \, B a^{2} b e - A a b^{2} e\right )} d + 2 \, {\left (B b^{3} d^{2} + 3 \, B a^{2} b e^{2} - 2 \, A a b^{2} e^{2} - 2 \, {\left (2 \, B a b^{2} e - A b^{3} e\right )} d\right )} x}{2 \, {\left (b^{6} x^{2} + 2 \, a b^{5} x + a^{2} b^{4}\right )}} + \frac {B x e^{2}}{b^{3}} + \frac {{\left (2 \, B b d e - 3 \, B a e^{2} + A b e^{2}\right )} \log \left (b x + a\right )}{b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 239 vs.
\(2 (107) = 214\).
time = 1.52, size = 239, normalized size = 2.32 \begin {gather*} -\frac {2 \, B b^{3} d^{2} x + {\left (B a b^{2} + A b^{3}\right )} d^{2} - {\left (2 \, B b^{3} x^{3} + 4 \, B a b^{2} x^{2} - 5 \, B a^{3} + 3 \, A a^{2} b - 4 \, {\left (B a^{2} b - A a b^{2}\right )} x\right )} e^{2} - 2 \, {\left (2 \, {\left (2 \, B a b^{2} - A b^{3}\right )} d x + {\left (3 \, B a^{2} b - A a b^{2}\right )} d\right )} e + 2 \, {\left ({\left (3 \, B a^{3} - A a^{2} b + {\left (3 \, B a b^{2} - A b^{3}\right )} x^{2} + 2 \, {\left (3 \, B a^{2} b - A a b^{2}\right )} x\right )} e^{2} - 2 \, {\left (B b^{3} d x^{2} + 2 \, B a b^{2} d x + B a^{2} b d\right )} e\right )} \log \left (b x + a\right )}{2 \, {\left (b^{6} x^{2} + 2 \, a b^{5} x + a^{2} b^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.16, size = 187, normalized size = 1.82 \begin {gather*} \frac {B e^{2} x}{b^{3}} + \frac {3 A a^{2} b e^{2} - 2 A a b^{2} d e - A b^{3} d^{2} - 5 B a^{3} e^{2} + 6 B a^{2} b d e - B a b^{2} d^{2} + x \left (4 A a b^{2} e^{2} - 4 A b^{3} d e - 6 B a^{2} b e^{2} + 8 B a b^{2} d e - 2 B b^{3} d^{2}\right )}{2 a^{2} b^{4} + 4 a b^{5} x + 2 b^{6} x^{2}} - \frac {e \left (- A b e + 3 B a e - 2 B b d\right ) \log {\left (a + b x \right )}}{b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.06, size = 155, normalized size = 1.50 \begin {gather*} \frac {B x e^{2}}{b^{3}} + \frac {{\left (2 \, B b d e - 3 \, B a e^{2} + A b e^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{b^{4}} - \frac {B a b^{2} d^{2} + A b^{3} d^{2} - 6 \, B a^{2} b d e + 2 \, A a b^{2} d e + 5 \, B a^{3} e^{2} - 3 \, A a^{2} b e^{2} + 2 \, {\left (B b^{3} d^{2} - 4 \, B a b^{2} d e + 2 \, A b^{3} d e + 3 \, B a^{2} b e^{2} - 2 \, A a b^{2} e^{2}\right )} x}{2 \, {\left (b x + a\right )}^{2} b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 170, normalized size = 1.65 \begin {gather*} \frac {\ln \left (a+b\,x\right )\,\left (A\,b\,e^2-3\,B\,a\,e^2+2\,B\,b\,d\,e\right )}{b^4}-\frac {x\,\left (3\,B\,a^2\,e^2-4\,B\,a\,b\,d\,e-2\,A\,a\,b\,e^2+B\,b^2\,d^2+2\,A\,b^2\,d\,e\right )+\frac {5\,B\,a^3\,e^2-6\,B\,a^2\,b\,d\,e-3\,A\,a^2\,b\,e^2+B\,a\,b^2\,d^2+2\,A\,a\,b^2\,d\,e+A\,b^3\,d^2}{2\,b}}{a^2\,b^3+2\,a\,b^4\,x+b^5\,x^2}+\frac {B\,e^2\,x}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________